package com.woniu.mapper;

import com.woniu.entity.WaitPutaway;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WaitPutawayMapper {

    @Insert("insert into waitputaway(pname,price,stock,des,createdtime,merchant_id) values(#{pname},#{price},#{stock},#{des},#{createdtime},#{merchant_id})")
    public void insertWaitPutaway(WaitPutaway waitPutaway);

    @Select("select * from waitputaway")
    public List<WaitPutaway> selectWaitPutaway();

    @Delete("delete from waitputaway where wid=#{wid}")
    public void deleteWaitPutaway(int wid);

    @Select("select * from waitputaway where wid=#{wid}")
    public WaitPutaway selectWaitPutawayByWid(int wid);
}
